package com.cloud.haiyan_xo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloud.haiyan_base.service.SuperService;
import com.cloud.haiyan_commons.entity.Picture;
import com.cloud.haiyan_xo.vo.PictureVo;


import java.util.List;

/**
 * 图片表 服务类
 */
public interface PictureService extends SuperService<Picture> {

    /**
     * 获取图片列表
     *
     * @param pictureVo
     * @return
     */
    public IPage<Picture> getPageList(PictureVo pictureVo);

    /**
     * 新增图片
     *
     * @param pictureVoList
     */
    public String addPicture(List<PictureVo> pictureVoList);

    /**
     * 编辑图片
     *
     * @param pictureVO
     */
    public String editPicture(PictureVo pictureVO);

    /**
     * 批量删除图片
     *
     * @param pictureVO
     */
    public String deleteBatchPicture(PictureVo pictureVO);

    /**
     * 设置图片封面
     *
     * @param pictureVO
     */
    public String setPictureCover(PictureVo pictureVO);

    /**
     * 获取最新图片,按时间排序
     *
     * @return
     */
    public Picture getTopOne();
}
